package com.apes.scm.masterdata.product.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.product.model.CategoryWorkHours;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CategoryWorkHoursRepository extends CustomRepository<CategoryWorkHours, String> {

    @Query(value = "select a.product.id  from CategoryWorkHours a  where a.categoryId.id=:id")
    List<String> findByCategory(@Param("id") String id);
}
